import axios from "@/axios";


// 测试前后端接口交互
export function getUserList(data) {
    return axios({
        url: '/user/test',
        method: 'get',
        params: data
    })
}

/**
 * 登录
 * @param data 用户名和密码
 * @returns {*}
 */
export function toLogin(data) {
    return axios({
        url: '/user/login',
        method: 'post',
        data: data,
    })
}

/**
 * 登出
 * @param data
 * @returns {*}
 */
export function logout(data) {
    return axios({
        url: '/user/logout',
        method: 'post',
        data: data
    })
}
